package com.choosefine.it.worker.dao;


import java.util.List;
import java.util.Map;

import com.choosefine.it.worker.model.WorkerItemsRelation;
import com.choosefine.it.worker.model.dto.WorkerItemWorkTypeDTO;
import com.choosefine.it.worker.model.dto.WorkerItemsRelationDTO;
import com.choosefine.it.worker.model.dto.WorkerItemsRelationUpdateDTO;
import com.choosefine.it.worker.model.vo.WorkerItemsRelationFindVO;
import com.choosefine.it.worker.model.vo.WorkerItemsRelationVO;
import com.github.pagehelper.Page;

public interface WorkerItemsRelationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(WorkerItemsRelation record);

    int insertSelective(WorkerItemsRelation record);

    WorkerItemsRelation selectByPrimaryKey(Integer id);
    
    int updateByPrimaryKeySelective(WorkerItemsRelation record);

    int updateByPrimaryKey(WorkerItemsRelation record);

	int deleteWorkerItemsRelation(WorkerItemsRelation workerItemsRelation);

	Page<WorkerItemsRelationVO> findWorkerByTeam(Map<String, Object> params);

	List<String> findMemberByTeamId(Integer teamId);

	int saveWorkItemsRelation(WorkerItemsRelationDTO workerItemsRelationDTO);

//	int updateWorkerTypes(List<WorkerItemWorkTypeDTO> workerItemWorkTypeDTOs);
	
	int updateWorkerTypes(WorkerItemsRelationUpdateDTO workerItemsRelationUpdateDTO);
	
	int saveWorkItemsRelationList(List<WorkerItemWorkTypeDTO> list);
	
	int findMemberByUserCodeAndTeamId(Map<String, Object> params);
	
	Integer selectByProjectCodeAndTeamId(Map<String, Object> params);
	
	String queryWorkTypeByWorkerTeamId(int id);

	WorkerItemsRelationFindVO findWorker(Integer id);
}